<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>会员管理</title>
    <%@include file="/WEB-INF/views/commons/commons.jsp" %>
    <script type="text/javascript" src="/static/js/system/recharge.js"></script>

</head>
<body class="easyui-layout">
<div data-options="region:'west',split:true" style="width:30%;">
    <div align="center" style="width: 100%;height: 4%;">
        <input id="ss"/>

    </div>
    <div style="width: 100%;height: 96%;">
        <table id="member_datagrid"></table>
    </div>


</div>
<div data-options="region:'center'," style="padding:5px;background:#eee;">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',split:true" style="height:30%;background:#eee;">
            <div class="easyui-layout" data-options="fit:true">
                <form id="member_form" method="get">
                    <div data-options="region:'west'" border="false" style="width:40%;background:#eee;">
                        <div style="height: 22%;margin-top: 4%;margin-left: 20%">
                            <span style="width: 100px"></span>
                            会员名称:
                            <input id="name" class="easyui-textbox" name="name" readonly="readonly">
                        </div>
                        <div style="height: 22%;margin-left: 20%">
                            会员等级:
                            <input id="levelName" class="easyui-textbox" name="level.levelName" readonly="readonly">
                        </div>
                        <div style="height: 22%;margin-left: 20%">
                            会员生日:
                            <input class="easyui-datebox" name="birthday" readonly="readonly">
                        </div>
                        <div style="height: 22%;margin-left: 20%">
                            会员余额:
                            <input id="balance" class="easyui-textbox" name="balance" readonly="readonly">
                        </div>
                    </div>
                    <div data-options="region:'center'" border="false" style="background:#eee">
                        <div style="height: 22%;margin-top: 5%">
                            会员卡号:
                            <input id="cardno" class="easyui-textbox" name="cardno" readonly="readonly">
                        </div>
                        <div style="height: 22%">
                            电话号码:
                            <input class="easyui-textbox" name="tel" readonly="readonly">
                        </div>
                        <div style="height: 22%">
                            累计消费:
                            <input class="easyui-textbox" name="totalSpend" readonly="readonly">
                        </div>
                        <div style="height: 22%">
                            目前积分:
                            <input class="easyui-textbox" name="availablepoint" readonly="readonly">
                        </div>
                    </div>
                    <div data-options="region:'east'" border="false" style="width:30%;background:#eee">
                        <div align="center" style="margin-top: 8%">
                            <img src="/static/image/welcome.jpg">
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div data-options="region:'center'" style="background:#eee;height: auto">
            <div class="easyui-layout" data-options="fit:true" style="background:#eee;">
                <form id="recharge_form" method="post">
                    <input type="hidden" id="memberId" name="member.id">
                    <input type="hidden" id="amountbefore" name="amountbefore">
                    <div data-options="region:'west'" border="false" style="width:50%;background:#eee;">
                        <div style="height: 22%;margin-left: 15%;margin-top: 5%">
                            操作方式:
                            <input type="radio" name="rekind" value="1">充值
                            <input type="radio" name="rekind" value="-1">扣费
                        </div>
                        <div style="height: 22%;margin-left: 15%">
                            充值金额:
                            <input id="reamount" type="number" name="reamount" prompt="请输入充值金额"
                                   required="true">
                        </div>
                        <div style="height: 22%;margin-left: 15%">
                            赠送金额:
                            <input id="giftamount" type="number" name="giftamount" value="0"
                                   readonly="readonly"
                                   prompt="赠送金额">
                        </div>
                        <div style="height: 22%;margin-left: 15%">
                            支付类型:
                            <input type="radio" checked="checked" name="paykind" value="1">现金
                            <input type="radio" name="paykind" value="2">储蓄卡
                            <input type="radio" name="paykind" value="3">支付宝
                            <input type="radio" name="paykind" value="4">微信
                        </div>
                    </div>
                    <div data-options="region:'center'" border="false" style="width:50%;background:#eee;">
                        <div style="height: 100px;margin-left: 5%;margin-top: 5%">
                            备注信息:
                            <input class="easyui-textbox" style="width: 200px;height: 90px" multiline="true"
                                   name="remark">
                        </div>
                        <div style="height: 22%;margin-left: 5%">
                            <input type="checkbox" class="checkinput" name="print_switch_open" id="print_switch_open"
                                   value="">
                            <label for="print_switch_open">打印充值小票</label><span>&nbsp;&nbsp;</span>
                            <span>合计充值：<i class="money" style="color: red" id="totalAmount">¥0.00</i></span>
                            <span>&nbsp;&nbsp;</span>
                            <input type="button" value="充值" onclick="recharge();"
                                   style="border-radius: 5px;background-color: red;border:0; height: 25px">
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div data-options="region:'south',split:true" style="height:39%;background:#eee;">
            <table id="rechargebill_datagrid"></table>
        </div>
    </div>

</div>
</body>
</html>

